package com.yic.module.wms.controller.admin.erpproducein.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yic.framework.excel.core.annotations.DictFormat;
import com.yic.framework.excel.core.convert.DictConvert;

import javax.validation.constraints.NotNull;


/**
 * erp生产入库 Excel VO
 *
 * @author 系统管理员
 */
@Data
public class ErpProduceInExcelVO {

    @ExcelProperty("序号")
    private Long id;

    @ExcelProperty("工厂")
    private String factoryId;

    @ExcelProperty("生产车间")
    private String workshopId;

    @ExcelProperty("单号")
    private String code;

    @ExcelProperty("单据编号")
    private String erpDocNo;

    @ExcelProperty("单据类型")
    private String erpDocCode;

    @ExcelProperty("单据日期")
    private LocalDateTime erpDocDate;

    @ExcelProperty("工作中心")
    private String erpCenterCode;

    @ExcelProperty("仓库")
    private String erpWarehouseCode;

    @ExcelProperty("库位")
    private String erpBinCode;

    @ExcelProperty("生产计划")
    private Long planId;

    @ExcelProperty("产品信息")
    private Long itemId;

    @ExcelProperty("允收数量")
    private BigDecimal acceptedQty;

    @ExcelProperty("报废数量")
    private BigDecimal scrapQty;

    @ExcelProperty("破坏数量")
    private BigDecimal destroyedQty;

    @ExcelProperty("批次号")
    private String batchNo;

    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("system_integer_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer status;

    @ExcelProperty("请求信息")
    private String request;

    @ExcelProperty("返回信息")
    private String response;

    @ExcelProperty("同步信息")
    private String description;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
